<?php

namespace App\Api\Logic;


use App\Api\Logic\Validate\SourceContentValidate;

class SourceContentLogic extends BaseLogic
{
    /**
     * @param array $data
     * @return void
     */
    public function getSourceList(array $data)
    {
        $validate = $this->getValidate();
        if(!$validate->scene('getSourceList')->check($data)){
            //var_dump($validate->getError());
            $this->error($validate->getError());
        }
    }

    /**
     * @return SourceContentValidate
     */
    private function getValidate():SourceContentValidate{
        return  new SourceContentValidate();
    }
}
